const http = require('http')

http.createServer((req, res) => {
  if (req.url.startsWith('/login')) {
    res.end('callback({"name": 123})')
  } else if (req.url === '/users') {
    res.end('user list~')
  } else {
    res.end('404~')
  }

}).listen(3000, '127.0.0.1', () => {
  console.log('start server')
})